home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / tracer / Makefile.mak < prev    next >
Makefile  |  1997-07-22  |  2KB  |  77 lines

  1. #*************************************************************#
  2. #
  3. #  $Id: Makefile.mak,v 4.1 1997/06/25 21:55:38 pvmsrc Exp $
  4. #
  5. #  Nmake file for the PVM tracer
  6. #
  7. #  PVM_ARCH   = the official pvm-name of your processor
  8. #  ARCHCFLAGS = special cc flags
  9. #
  10.  
  11. #  USER installation specific part -- to be modified
  12.  
  13. !IF "$(OS)" == "Windows_NT"
  14. NULL=
  15. !ELSE
  16. NULL=nul
  17. !ENDIF
  18. !include $(PVM_ROOT)\conf\$(PVM_ARCH).def
  19.  
  20. INCL    =    /I $(PVM_ROOT)/include /I $(PVM_ROOT)/tracer \
  21.             /I $(PVM_ROOT)/src
  22. LIBS    =    $(PVM_ARCH)/libpvmtracer.lib \
  23.             $(PVM_ROOT)/lib/$(PVM_ARCH)/libpvm3.lib
  24. OBJS    =    $(PVM_ARCH)/cmd.obj $(PVM_ARCH)/trcglob.obj \
  25.             $(PVM_ARCH)/tracer.obj
  26.  
  27. LIBOBJS    =    $(PVM_ARCH)/trcmess.obj $(PVM_ARCH)/trcfile.obj \
  28.             $(PVM_ARCH)/trccompat.obj $(PVM_ARCH)/trccompatglob.obj \
  29.             $(PVM_ARCH)/trcutil.obj $(PVM_ARCH)/trclib.obj
  30.  
  31. all:    paths $(PVM_ARCH)/libpvmtracer.lib tracer.exe
  32.  
  33. paths:
  34.     if not exist "$(PVM_ARCH)/$(NULL)" mkdir "$(PVM_ARCH)"
  35.     if not exist "../lib/$(PVM_ARCH)/$(NULL)" mkdir "../lib/$(PVM_ARCH)"
  36.  
  37. $(PVM_ARCH)/libpvmtracer.lib:  $(LIBOBJS)
  38.     $(link) $(libspec) $(conflags) \
  39.         $(OUTBIN)$(PVM_ROOT)\tracer\$(PVM_ARCH)\libpvmtracer.lib \
  40.         $(LIBOBJS)
  41.  
  42. tracer.exe: $(OBJS) $(PVM_ARCH)/libpvmtracer.lib
  43.     $(link) $(OUTBIN)$(PVM_ROOT)\tracer\$(PVM_ARCH)\tracer.exe \
  44.         $(OBJS) $(LIBS) $(link_flags)
  45.  
  46. $(PVM_ARCH)/cmd.obj: cmd.c
  47.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/cmd.obj cmd.c
  48.  
  49. $(PVM_ARCH)/trcglob.obj: trcglob.c
  50.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcglob.obj trcglob.c
  51.  
  52. $(PVM_ARCH)/tracer.obj: tracer.c
  53.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/tracer.obj tracer.c
  54.  
  55. # LIB
  56.  
  57. $(PVM_ARCH)/trcmess.obj: trcmess.c
  58.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcmess.obj trcmess.c
  59.  
  60. $(PVM_ARCH)/trcfile.obj: trcfile.c
  61.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcfile.obj trcfile.c
  62.  
  63. $(PVM_ARCH)/trccompat.obj: trccompat.c
  64.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trccompat.obj \
  65.         trccompat.c
  66.  
  67. $(PVM_ARCH)/trccompatglob.obj: trccompatglob.c
  68.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trccompatglob.obj \
  69.         trccompatglob.c
  70.  
  71. $(PVM_ARCH)/trcutil.obj: trcutil.c
  72.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcutil.obj trcutil.c
  73.  
  74. $(PVM_ARCH)/trclib.obj: trclib.c
  75.     $(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trclib.obj trclib.c
  76.  
  77.